@Fox
como assim 20,30k?
Travar o server quando um player abre o pc dá pra entender o motivo, porque são vários for pra exibir as estatisticas...Mas os players que falou q abre e trava são sempre os mesmos?
Eu acho que pode ser assim...Tem algum bug que ta dando aquele freeze no server (tipo o dos pokes qdo morrem) aí bem nessa hora vai um cara e abre o pc...Isso faz com que o server faça alguns for, o que causa o lag maior...mas sei la...tem q ver pq ta travando os pokes ao morrer, corrigir, e depois ver se arruma...Algum de vcs tá tendo problema com itens sumindo do cp e da bag dos players?















info
Grupo: Artesão
Registrado: 27/04/11
Posts: 112
Reputação: +2
@Foxkbt
Para que eu não faça cagada... AUHHAHUAHUUA arruma pra mim? ;X
não sei aonde eu coloco...
"
PVP_tile.lua
function onStepIn(cid, item, position, fromPosition)
local s = getCreatureSummons(cid)
local t = getCreatureOutfit(cid).lookType
local h = getCreatureOutfit(cid).lookHead
local b = getCreatureOutfit(cid).lookBody
local l = getCreatureOutfit(cid).lookLegs
local f = getCreatureOutfit(cid).lookFeet
if isSummon(cid) or isMonster(cid) then return false end
if getPlayerStorageValue(cid, 17001) == 1 or getPlayerStorageValue(cid, 5700) == 1 or getPlayerStorageValue(cid, 17000) == 1 then
doPlayerSendCancel(cid, "You can't do that while ride/fly/or in a bike.")
doTeleportThing(cid, frompos, false)
return true
end
if item.actionid == 25695 then --team red
setPlayerStorageValue(cid, 6598754, 1)
doSetCreatureOutfit(cid, {lookType = t, lookBody = 113, lookHead = 113, lookLegs = 113, lookFeet = 113}, -1)
doTeleportThing(cid, {x = 356, y = 1110, z = 9}, false)
if #s >= 1 then
setPlayerStorageValue(s[1], 6598754, 1)
doTeleportThing(s[1], {x = 357, y = 1110, z = 9}, false)
end
elseif item.actionid == 25696 then --team azul
setPlayerStorageValue(cid, 6598755, 1)
doSetCreatureOutfit(cid, {lookType = t, lookBody = 107, lookHead = 107, lookLegs = 107, lookFeet = 107}, -1)
doTeleportThing(cid, {x = 380, y = 1110, z = 9}, false)
if #s >= 1 then
setPlayerStorageValue(s[1], 6598755, 1)
doTeleportThing(s[1], {x = 381, y = 1110, z = 9}, false)
end
elseif item.actionid == 25697 then
setPlayerStorageValue(cid, 6598754, -1)
setPlayerStorageValue(cid, 6598755, -1)
doRemoveCondition(cid, CONDITION_OUTFIT)
doTeleportThing(cid, {x = 368, y = 1085, z = 9}, false)
if #s >= 1 then
setPlayerStorageValue(s[1], 6598754, -1)
setPlayerStorageValue(s[1], 6598755, -1)
doTeleportThing(s[1], {x = 368, y = 1086, z = 9}, false)
end
elseif item.actionid == 25698 then
setPlayerStorageValue(cid, 6598754, -1)
setPlayerStorageValue(cid, 6598755, -1)
doRemoveCondition(cid, CONDITION_OUTFIT)
doTeleportThing(cid, {x = 368, y = 1085, z = 9}, false)
if #s >= 1 then
setPlayerStorageValue(s[1], 6598754, -1)
setPlayerStorageValue(s[1], 6598755, -1)
doTeleportThing(s[1], {x = 368, y = 1086, z = 9}, false)
end
elseif item.actionid == 24158 then
if getCreatureCondition(cid, CONDITION_INFIGHT) == TRUE then
doPlayerSendCancel(cid, "You can't do that while is in battle!")
doTeleportThing(cid, fromPosition, false)
end
end
return true
end